module.exports = {
    // ...
    configureWebpack(config) {
        // ...

        config.externals = {
            'BMapGL': 'BMapGL',
            'BMap_Symbol_SHAPE_POINT': 'BMap_Symbol_SHAPE_POINT',
            'BMAP_NAVIGATION_CONTROL_LARGE': 'BMAP_NAVIGATION_CONTROL_LARGE',
            'BMAP_ANCHOR_TOP_LEFT': 'BMAP_ANCHOR_TOP_LEFT',
            'BMAP_EARTH_MAP': 'BMAP_EARTH_MAP',
        }
    },
	productionSourceMap: false,
    devServer: {
        open: false,
        // 跨域
        proxy: {
            '/api': {
                target: 'http://180.167.78.98:8248',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '/'
                }
            }
        }
    }
}